package com.cloudfunx.common.util;

import org.apache.commons.lang3.RandomStringUtils;

/**
 * 随机码工具类
 * @author heiansl
 */
public class RandomCodeUtils {
    public static String genCode() {
        return genCode(8);
    }

    public static String genCode(int length) {
        return RandomStringUtils.random(length, "1234567890abcdefghijklmnopqrstuvwxyz");
    }
}
